#ifndef __LatestDiv_H__
#define __LatestDiv_H__

#include "facecat/stdafx.h"
#include "Security.h"
#include "facecat/FCPaint.h"
#include "facecat/FCView.h"
#include "facecat/FCTran.h"

class LatestDiv: public FCView{
public:
    /*
     * 创建视图
     */
    LatestDiv();
    int m_digit;
    bool m_lV2;
    SecurityLatestData m_latestData;
    String m_code;
    void setCode(String value);
    bool m_isIndex;
    String m_sName;
    void drawValue(FCPaint *paint, double value, int digit, FCFont *font, Long color, int x, int y);
    virtual void onPaintForeground(FCPaint *paint, const FCRect &clipRect);
    void bindData(SecurityLatestData latestData, bool refresh);
    
};

#endif
